#include "TCanvas.h"
#include "TDirectory.h"
#include "TF1.h"
#include "TFile.h"
#include "TFitter.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TH1.h"
#include "TH2.h"
#include "TH2F.h"
#include "TH3.h"
#include "THStack.h"
#include "TImage.h"
#include "TLegend.h"
#include "TLegendEntry.h"
#include "TLine.h"
#include "TMath.h"
#include "TMatrix.h"
#include "TMatrixT.h"
#include "TMinuit.h"
#include "TProfile.h"
#include "TRandom.h"
#include "TStyle.h"
#include "TTree.h"
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
//#include <math.h>
#include <sstream>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string> 
#include <time.h> 
#include <vector>


void hotmap()
{

	TCanvas *c1 = new TCanvas("c1","c1",1000,600);
//	TH2F *hcol1 = new TH2F("hcol1","p_{T}^{#gamma}>10 GeV, p_{T}^{l}>20 GeV",9,20,110,9,80,170);
	TH2F *hcol1 = new TH2F("hcol1","",10,20,120,9,80,170);
	Double_t effi[90][3] =1

	for (Int_t i = 0; i < 91; i++) {
		hcol1->Fill(effi[i][0],effi[i][1],effi[i][2]);
	}
	gStyle->SetPalette(kBird);
	gStyle->SetPaintTextFormat("1.1f");
    c1->SetTopMargin(0.1);
    c1->SetLeftMargin(0.2);
    c1->SetRightMargin(0.2);
	hcol1->Draw("COLZ1,TEXT");
	hcol1->SetMarkerSize(1.5);
	hcol1->SetMaximum(15);
	hcol1->SetMinimum(0.0);
    hcol1->GetXaxis()->SetTitle("M_{h} [GeV]");
    hcol1->GetYaxis()->SetTitle("M_{H^{#pm}} [GeV]");
	//TPaveText *pt1=new TPaveText (0.4,0.91,0.7,1,"NDC");
	//NDC: normalized coordinates (x1,y1,x2,y2)
	//pt1->SetBorderSize(0);
	//pt1->SetFillColor(0);

////std::string name="p_{T}^{#gamma}>10 GeV, p_{T}^{l}>20 GeV";
////TText *t1=pt1->AddText(name.c_str());
////t1->SetTextColor(1);
////t1->SetTextAngle(0);//angle in degree
////t1->SetTextSize(0.04);
////t1->SetTextFont(42);
////t1->SetTextAlign(12);//=H and V centred

//	pt1->Draw();
	c1->Update();

  TString outfilename = TString("significance_mh_mch_10.pdf");
  c1->SaveAs(outfilename);
	return c1;

}


